package lab03.test01.test09;

/**
 * Created by lenovo on 2017/12/13.
 */
public class Book {
    String id,name,edition;
     float price;
     int sale;
     public Book(){}
     public Book(String id,String name,String edition,String price,String sale){
                this.id=id;
               this.name=name;
                this.edition=edition;
                this.price=Float.parseFloat(price);
                this.sale=Integer.parseInt(sale);
            }
     void increasePrice(int increase){
                price+=increase;
            }
     public String toString(){
                String str;
                str=id+"  "+name+"         "+edition+"  "+price+"  "+sale+"\r\n";
                return  str;
            }
 }

